package com.xoa.service.rms;

import com.xoa.model.rms.*;
import com.xoa.util.ToJson;
import com.xoa.util.page.PageParams;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RmsLendService {
    //条件查询列表
    public ToJson selRmsLend(String operator,String allow,Integer page,Integer pageSize,Boolean useFlag);
    //修改状态
    public ToJson modifyRmsLendById(String operator,String deleteFlag,String allow,Integer lendId,String returnTime,String allowTime);
    //点击借阅
    public ToJson addRmsLend(RmsLend rmsLend);

    ToJson insertLensd(HttpServletRequest request, Integer[] fileIds);

    ToJson selAllLendBy(Integer page,Integer pageSize,Boolean useFlag,RmsFile rmsFile, String roomName, String rollName);
     ToJson<RmsRollWithBLOBs> rollCount(RmsRollWithBLOBs rmsRollWithBLOBs, PageParams pageParams);

    ToJson<RmsFileWithBLOBs> fileJieYueCount(RmsFileWithBLOBs rmsFileWithBLOBs, PageParams pageParams);

    ToJson selRmsLendByJieYe(Integer fileId, String allow, Integer page, Integer pageSize, Boolean useFlag);


    //修改审核状态
    public Integer updateAllow(RmsLend rmsLend);

    //根据审核状态查询结果
    public List<RmsLend> selectAllow(String Allow);

    //删除
    public Integer deleteFlag(Integer lendId);

    //查看详情
    public RmsLend selectByLend(Integer lend);

    //查询所有借阅
    public List<RmsLend> selectByCount(Integer page, Integer pageSize, Boolean useFlag, Map map , RmsLend rmsLend);

    //根据条件搜索
    public List<RmsLend> queryByCount(Integer page, Integer pageSize, Boolean useFlag, Map map , RmsFile rmsFile , RmsRoll rmsRoll,RmsLend rmsLend);

    //我的借阅
    public List<RmsLend> select(Integer page, Integer pageSize, Boolean useFlag, Map map , RmsLend rmsLend);

    //文件查询
    public List<RmsFile> selectAndFile();
}
